/*!
 * @file object.hh
 * @brief Nakładka na model. Podlega fizyce
 */

#ifndef __ENGINE_BASIC_OBJECT_HH
#define __ENGINE_BASIC_OBJECT_HH

#include "engine/basic/model.hh"


class object{
public:
	object(inifile *config);

	object(model *model3d, float width, point3f pos, point3f rot);

	void draw();

	void physic(float timeInMs);

	void setPhysic(bool newstatus);

//private:
	point3f rotateVec(point3f a);

	const model *model3d;

	bool isPhysicEnabled;

	const float totalMass;
	const float scale;


	point3f position;
	point3f rotation;

	point3f v;
	point3f a;
	point3f r;

};

#else
class object;
#endif
